<#include "/common/_itjson_layout.ftl" />
<@itjsonCommonLayout "json2java">
    <!-- begin主体 -->




<div id="accordion2" class="accordion">
        <div class="accordion-group">
            
            


            <div role="alert" class="alert alert-success alert-dismissible">
                <button aria-label="Close" data-dismiss="alert" class="close" type="button">
                    <span aria-hidden="true">×</span></button>
                Json生成Java实体类工具（ 在线Json生成JavaBean代码 ）
            </div>
            
            <div class="panel">
                <form method="post" action="" class="form-horizontal">
                <div class="form-group">
                    <div class="col-sm-12">
                        <textarea placeholder="贴入Json代码，轻松生成JavaBean实体类" style="max-height: 2222px;" rows="15" class="form-control" onkeyup="gen();" onchange="gen();" name="json_content" id="json_content"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <input type="button" value="生成JavaBean" onclick="gen();" class="btn btn-success">
                        <input type="button" value="清空输入框" onclick="emptyjson2java();" class="btn btn-danger">
                        <input type="button" value="下载JavaBean" id="download_btn" onclick="download_zip();" class="btn btn-success">
                        <b>Class：</b>
                        <input type="text" value="MyBean" placeholder="类名" id="class_name" class="btn btn-default">
                        <b>Package：</b>
                        <input type="text" value="com.itjson.bean" placeholder="包名根路径" id="package_name" class="btn btn-default">
                    </div>
                </div>
                <div class="form-group">
                    <div id="resule_text" class="col-sm-12"><div style="max-width: 99%;" class="alert alert-success">成功生成JavaBean代码!</div></div>
                </div>
                
                <div class="form-group">
                    <div id="result-list" class="col-sm-12">
                    <div class="row result_row"></div></div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <div role="alert" id="copycodeall" class="alert alert-success alert-dismissible text-center">
                            <strong>复制成功!</strong> &nbsp;&nbsp;已经成功复制到剪切板&nbsp;&nbsp;可直接粘贴到任意地方.
                        </div>
                    </div>
                </div>
                </form>
            </div>
        </div>
        
        
        
<div class="accordion-group">
            <div class="accordion-heading">
                <a href="#demo1" data-toggle="collapse" class="list-group-item list-group-item-warning">
                    Json生成JavaBean代码（Json生成Java实体类工具）</a>
            </div>
            <div class="in collapse bs-docs-demoexample" id="demo1">
                <h4 style="color: #66be8c;">
                    Json字符串转换成Java实体类</h4>
                <br>
                <h5>
                    1,贴入json内容，Javabean的类名、包名即可自动生成JavaBean代码，并可以直接打包下载源码</h5>
                <h5>
                    2,支持将任意复杂/简单格式的Json字符串生成Javabean实体类</h5>
                <h5>
                    3,提供Json格式错误提示,不会格式化不符合规范的Json字符串,确保了Javabean实体类的准确性</h5>
            </div>
        </div>
        <br>
    </div>
    
    <!-- 需要tool.js jszip.js FileSaver.js-->
    <script src="${contextPath}/them/1/js/tool.js" type="text/javascript"></script>
    <script src="${contextPath}/them/1/js/jszip.js" type="text/javascript"></script>
    <script src="${contextPath}/them/1/js/FileSaver.js" type="text/javascript"></script>
</@itjsonCommonLayout>